package com.autologistics.model;

/**
 * AdminId entity. @author MyEclipse Persistence Tools
 */

public class AdminId implements java.io.Serializable {

	// Fields

	private Integer id;
	private String account;
	private String pwd;
	private Integer lv;

	// Constructors

	/** default constructor */
	public AdminId() {
	}

	/** full constructor */
	public AdminId(Integer id, String account, String pwd, Integer lv) {
		this.id = id;
		this.account = account;
		this.pwd = pwd;
		this.lv = lv;
	}

	// Property accessors

	public Integer getId() {
		return this.id;
	}

	public void setId(Integer id) {
		this.id = id;
	}

	public String getAccount() {
		return this.account;
	}

	public void setAccount(String account) {
		this.account = account;
	}

	public String getPwd() {
		return this.pwd;
	}

	public void setPwd(String pwd) {
		this.pwd = pwd;
	}

	public Integer getLv() {
		return this.lv;
	}

	public void setLv(Integer lv) {
		this.lv = lv;
	}

	public boolean equals(Object other) {
		if ((this == other))
			return true;
		if ((other == null))
			return false;
		if (!(other instanceof AdminId))
			return false;
		AdminId castOther = (AdminId) other;

		return ((this.getId() == castOther.getId()) || (this.getId() != null
				&& castOther.getId() != null && this.getId().equals(
				castOther.getId())))
				&& ((this.getAccount() == castOther.getAccount()) || (this
						.getAccount() != null && castOther.getAccount() != null && this
						.getAccount().equals(castOther.getAccount())))
				&& ((this.getPwd() == castOther.getPwd()) || (this.getPwd() != null
						&& castOther.getPwd() != null && this.getPwd().equals(
						castOther.getPwd())))
				&& ((this.getLv() == castOther.getLv()) || (this.getLv() != null
						&& castOther.getLv() != null && this.getLv().equals(
						castOther.getLv())));
	}

	public int hashCode() {
		int result = 17;

		result = 37 * result + (getId() == null ? 0 : this.getId().hashCode());
		result = 37 * result
				+ (getAccount() == null ? 0 : this.getAccount().hashCode());
		result = 37 * result
				+ (getPwd() == null ? 0 : this.getPwd().hashCode());
		result = 37 * result + (getLv() == null ? 0 : this.getLv().hashCode());
		return result;
	}

}